#ifndef QMLFILE_H
#define QMLFILE_H

#include <QtDeclarative/QDeclarativeItem>

class QMLFile : public QDeclarativeItem
{
    Q_OBJECT
    Q_DISABLE_COPY(QMLFile)
    
public:
    Q_INVOKABLE bool exists(QString path);
    Q_INVOKABLE QString getEntryList(QString path);
    Q_INVOKABLE QString getExistingDirectory(QString title, QString default_path);
//    Q_INVOKABLE QDeclarativeListProperty<QString> getEntryList();//QString path);

public:
    QMLFile(QDeclarativeItem *parent = 0);
    ~QMLFile();
};

QML_DECLARE_TYPE(QMLFile)

#endif // QMLFILE_H

